public class Animal {
    public String name;
    public int age;
    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat() {
        System.out.println("吃饭!");
    }
}
class Dog extends Animal implements ISwimming,IWalk {
    public Dog(String name, int age) {
        super(name,age);
    }
    @Override
    public void swimming() {
        System.out.println(super.name + "正在游泳");
    }

    @Override
    public void Walking() {
        System.out.println(super.name + "正在走路");
    }

    @Override
    public void eat() {
        System.out.println(super.name + "正在吃饭");
    }

}

